package com.yz.kafka.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author yuanzheng
 * @since 2021/4/7
 */
@Configuration
@Data
@PropertySource(value = "classpath:application.yml")
public class CustomKafkaConfig {
    @Value("${producerConfig.brokerList}")
    private String brokerList;

    @Value("${producerConfig.topic}")
    private String topic;

    @Value("${producerConfig.topicCustomPartition}")
    private String topicCustomPartition;

    @Value("${producerConfig.group}")
    private String group;
}
